class_name BuffUndamagable
extends BaseBuff


func start_buff():
	var player = holder as Player
	player.undamagable_animation_player.stop()
	player.undamagable_animation_player.play("Undamagable")
	
	var particle = (ResourceManager.get_resource("undamagable_star_effect") as PackedScene).instantiate()
	add_child(particle)
	
	await get_tree().create_timer(duration).timeout
	player.undamagable_animation_player.stop()
	queue_free()
	
	
